package com.wxisme.iterator;

public class Client {
	public static void main(String[] args) {
		ConcreteAggregate cag = new ConcreteAggregate();
		for(int i=0; i<26; i++) {
			cag.add((char)(i+'a')+"");
		}
		MyIterator iterator = cag.createIterator();
		System.out.print(iterator.first());
		iterator.next();
		while(iterator.hasNext()) {
			System.out.print(" " + iterator.next());
		}
	}
}
